import { IsEmail, IsNotEmpty, IsString } from 'class-validator';

export class SendEmailCodeBodyDto {
  @IsEmail({}, { message: '邮箱格式不正确' })
  readonly toEmail: string;
}

export class SendEmailToAdminBodyDto {
  @IsNotEmpty({ message: '邮件内容不能为空' })
  @IsString({ message: '邮件内容格式不正确' })
  readonly emailText: string;
}
